package org.mitoma.logger.shared;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import com.googlecode.objectify.Key;

@SuppressWarnings("serial")
public class UserSession implements Serializable {

  @Id
  private String    id;
  private Key<User> user;
  private Date      createdAt = new Date();
  private Date      updatedAt = new Date();

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public Key<User> getUser() {
    return user;
  }

  public void setUser(Key<User> user) {
    this.user = user;
  }

  public Date getCreatedAt() {
    return createdAt;
  }

  public void setCreatedAt(Date createdAt) {
    this.createdAt = createdAt;
  }

  public Date getUpdatedAt() {
    return updatedAt;
  }

  public void setUpdatedAt(Date updatedAt) {
    this.updatedAt = updatedAt;
  }

}
